package com.yqy.spring.service;

import org.aspectj.lang.ProceedingJoinPoint;

public class TimerAspect {
    public void time(ProceedingJoinPoint proceedingJoinPoint) throws Throwable {
        long begin=System.currentTimeMillis();
        proceedingJoinPoint.proceed();
        long end=System.currentTimeMillis();
        System.out.println("耗时"+(end-begin)+"毫秒");
    }
}
